package com.sy.auto.token;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "token")
public class TokenProperties {
    private final long DEFAULT_TIME=30*60*100;//默认30分钟
    private final String DEFAULT_SECRET="ce8ea24b-5866-4528-80f6-ae15b53ac0b0";
    long validTime;//单位：分钟
    String secret; //密钥

    public TokenProperties() {
        this.validTime=DEFAULT_TIME;
        this.secret=DEFAULT_SECRET;
    }

    public long getValidTime() {
        return validTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
